Ext.define('Admin.view.tender.TenderTwoForm', {
    extend: 'Admin.ux.form.FormPanel',
    xtype: 'tendertwo-form',
	title: '发布二次公告',
    items: [
    	{	xtype:'hiddenfield',name:'id'	},
        {
            xtype: 'textfield',
            name:'title',
            id:'title',
            readOnlyCls:'x-item-abled',
            fieldLabel: '标题',
            emptyText:'请输入标题[4-50位汉字]',
            minLength:4,
            maxLength:50,
            vtype:'alpha'
        },
        {
            xtype: 'textfield',
            name:'num',
            id:'num',
            readOnlyCls:'x-item-abled',
            fieldLabel: '招标公告编号',
            emptyText:'请输入标题[4-50位编号]',
            minLength:4,
            maxLength:50,
            vtype:'alpha'
        },
        {
            xtype: 'textfield',
            name:'source',
            id:'source',
            readOnlyCls:'x-item-abled',
            fieldLabel: '来源',
            vtype:'alpha'
        },
        {
            xtype: 'tagfield',
            fieldLabel: '类型',
            emptyText:'全部',
            id:'area',
            displayField: 'area',
            valueField: 'area',
            queryMode: 'local',
            minChars :1,
            remoteFilter: true,
            editable :true,
            forceSelection :true,
            filterPickList: true,
            name:'type_id',
            store: Ext.create('Ext.data.Store',{
                fields: ['area'],
                data: [
                    ['招标专区']
                ],
                autoLoad:true
            })
        },
         {
	        xtype: 'tagfield',
	        fieldLabel: '公告类型',
	        emptyText:'全部',
	        id:'type',
	        displayField: 'type',
	        valueField: 'type',
	     	queryMode: 'local',
	        minChars :1,
	        remoteFilter: true,
	        editable :true,
	        forceSelection :true,
         	filterPickList: true,
	        name:'type',
	        store: Ext.create('Ext.data.Store',{
	        	fields: ['type'],
				data: [
                    ['招标公告'],
                    ['资格预审公告'],
                    ['中标通知书'],
                    ['变更公告'],
                    ['澄清公告'],
                    ['招标结果公示']
				],
			    autoLoad:true
	        })
	    },
        {
            xtype: 'textfield',
            name:'people',
            id:'people',
            readOnlyCls:'x-item-abled',
            fieldLabel: '招标人',
            vtype:'alpha'
        },
        {
            xtype: 'checkboxgroup',
            fieldLabel: '所属板块',
            // Arrange checkboxes into two columns, distributed vertically
            columns: 4,
            vertical: true,
            items: [
                { boxLabel: '煤炭', name: 'bk', inputValue: '1' },
                { boxLabel: '电力', name: 'bk', inputValue: '2' },
                { boxLabel: '铝业', name: 'bk', inputValue: '3' },
                { boxLabel: '新能源', name: 'bk', inputValue: '4' },
                { boxLabel: '其他', name: 'bk', inputValue: '5' }
            ]
        },
        {
            xtype: 'checkboxgroup',
            fieldLabel: '采购类别',
            // Arrange checkboxes into two columns, distributed vertically
            columns: 4,
            vertical: true,
            items: [
                { boxLabel: '工程招标', name: 'cg', inputValue: '1' },
                { boxLabel: '物资招标', name: 'cg', inputValue: '2' },
                { boxLabel: '服务招标', name: 'cg', inputValue: '3' },
                { boxLabel: '其他', name: 'cg', inputValue: '4' }
            ]
        },
        {
            xtype: 'datefield',
            name: 'start',
            fieldLabel: '开标时间'
        },
        {
            xtype: 'datefield',
            name: 'end',
            fieldLabel: '报名截止'
        },
        {
            fieldLabel: '内容',
            name: "content",
            xtype: 'kindeditor',
            anchor: '-20',
            height:800,
            kindeditorConfig: {
                //编辑器配置项
                uploadJson : '/upload/uploadFile', //上传文件服务器地址
                fileManagerJson : '/upload/fileManager', //文件管理服务器地址
                allowFileManager : false
            }
        }

    ]
});